package com.fesine.ch02.SynNotExtends;

/**
 * @Author: Fesine
 * @CreateDate:2016/6/29
 * @UpdateUser:修改人名称
 * @UpdateDate:2016/6/29
 * @UpdateRemark:修改具体的内容
 */
public class Parent {
    synchronized public void serviceMethod() {
        System.out.println("int main 下一步sleep begin threadName="
                + Thread.currentThread().getName()+" time="+System.currentTimeMillis());
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("int main 下一步sleep end threadName="
                + Thread.currentThread().getName() + " time=" + System.currentTimeMillis());
    }

}
